from django.conf.urls import patterns, include, url
import settings

from django.contrib import admin
admin.autodiscover()
from echart.views import index 
import demo

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'echartsShow.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
	url(r'^static/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_URL}),
    url(r'^admin/', include(admin.site.urls)),
    #url(r'^index/',"echart.views.index"),
	#url(r'^index/',include('echart.urls')),
	url(r'^index/$',index,name='index'),
	url(r'^index/(?P<id>\d{1,2})$',index),
	url(r'^demo/',include('demo.urls')),
	url(r'^testname/(\d{2})$','demo.views.testname',name='testname'),
	url(r'^login/$','demo.views.login',name='login'),
	url(r'login/(?P<name>\w*)/(?P<password>\w*)','demo.views.login'),
	#url(r'^media/js/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATICFILES_URL}),

)
